package pers.hl.lib_global.http

import okhttp3.OkHttpClient
import pers.hl.common.http.NetworkManager
import pers.hl.lib_global.common.Const
import pers.hl.lib_global.service.LibService

object LibHttpClient : NetworkManager() {

    override fun getBaseUrl(): String {
        return Const.LIB_URL
    }

    fun getLibService(): LibService {
        return getApiService(LibService :: class.java)
    }

    override fun addInterceptors(builder: OkHttpClient.Builder) {
        builder.addInterceptor(AuthInterceptor())
        builder.addInterceptor(DouBanInterceptor())
    }

}